package com.gs.pattern.nocare;

/**
 * @Author: gs
 * @Date: 2023/12/10 16:26
 * @Version: v1.0.0
 * @Description: TODO
 **/
public class Person {

    private String name;
    private int age;
    private String tel;
    private String sex;

    public Person(String name,int age,String tel,String sex){
        this.age = age;
        this.name = name;
        this.tel = tel;
        this.sex = sex;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", tel='" + tel + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }
}
